import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_li_ke_jie/style/common_font_style.dart';
import 'package:flutter_li_ke_jie/utils/common_util.dart';

///异常页面
class ErrorPage extends StatelessWidget {
  late String error;
  ErrorPage({Key? key,String? error}) : super(key: key){
    this.error = CommonUtil.checkStrIsNull(error)?"未知异常,请退出再次操作":error!;
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Text(error,style: errorStyle,),
      ),
    );
  }
}
